<template>
  <div class="order">
    <div class="content-but">
      <div>交易单号：8989</div>
      <div>上单实收：8989</div>
    </div>
    <div>
      <el-button type="warning" @click="onUpdateNewUsers">点击录入会员</el-button>
      <el-button type="primary" @click="onAddNewUsers">新增会员</el-button>
    </div>

    <!---新增会员-->
    <add-new-users ref="refNewUsers" title="新增会员"></add-new-users>
    <!--点击录入会员-->
    <update-new-users ref="refUpdateNewUsers" title="点击录入会员"></update-new-users>
  </div>
</template>

<script setup lang="ts">
import { ref, toRefs, reactive } from 'vue'
import addNewUsers from '@/views/cashier-desk/components/diaglog/add-new-users.vue'
import updateNewUsers from '@/views/cashier-desk/components/diaglog/update-new-users.vue'

const refNewUsers = ref()
const refUpdateNewUsers = ref()
//显示
const onAddNewUsers = () => {
  refNewUsers.value.show()
}

const onUpdateNewUsers = () => {
  refUpdateNewUsers.value.show()
}
</script>

<style lang="scss" scoped>
.order {
  width: 100%;
  display: flex;
  justify-content: space-between;
  background-color: #fff;
  padding: 10px;
  box-sizing: border-box;
  .content-but {
    min-width: 120px;
    background-color: #07c160;
    color: #fff;
    padding: 10px 20px;
  }
  .but {
    padding: 10px;
    width: 100px;
    text-align: center;
    height: 50px;
    line-height: 50px;
    background-color: #eee;
  }
}
</style>
